home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000151_news@newsmaster….columbia.edu _Wed Aug 13 00:09:59 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id AAA15045
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 13 Aug 1997 00:09:59 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id AAA06860
  7.     for kermit.misc@watsun; Wed, 13 Aug 1997 00:09:58 -0400 (EDT)
  8. Path: news.columbia.edu!news.new-york.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!infeed2.internetmci.com!newsfeed.internetmci.com!news.wolsi.com!news.aros.net!news.cs.utah.edu!cc.usu.edu!jrd
  9. From: jrd@cc.usu.edu (Joe Doupnik)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Kermit macro question
  12. Message-ID: <7YZBP$LJAPgE@cc.usu.edu>
  13. Date: 12 Aug 97 10:40:51 MDT
  14. References: <5soa33$9a8$1@gte1.gte.net>
  15. Organization: Utah State University
  16. Lines: 18
  17. Xref: news.columbia.edu comp.protocols.kermit.misc:7452
  18.  
  19. In article <5soa33$9a8$1@gte1.gte.net>, dabolts@gte.net writes:
  20. > Can you define/assign a macro that contains a variable in the name?  For
  21. > example:
  22. > define \%a 1
  23. > define MESS_\%a This is message 1
  24. > where the macro should be named MESS_1 and contain "This is message 1"
  25. > Thanks...
  26. ----------
  27.     Use hidden command _DEFINE  which will expand substitution variables
  28. in the left side at definition time. Plain regular DEFINE retains the spelling
  29. without substitution, thus allowing dynamic spelling of macro names later
  30. on (when \%a is replaced by its value). _DEFINE does the replacement at the
  31. time the definition is created.
  32.     Try it.
  33.     Joe D.